﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace 震动画笔配置系统.UserControls
{
    /// <summary>
    /// TextBlock_TextBox_UserControl.xaml 的交互逻辑
    /// </summary>
    public partial class TextBlock_TextBox_UserControl : UserControl
    {
        public TextBlock_TextBox_UserControl()
        {
            InitializeComponent();
        }



        public string NameText
        {
            get { return (string)GetValue(NameTextProperty); }
            set { SetValue(NameTextProperty, value); }
        }

        // Using a DependencyProperty as the backing store for NameText.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty NameTextProperty =
            DependencyProperty.Register("NameText", typeof(string), typeof(TextBlock_TextBox_UserControl), new PropertyMetadata(""));



        public string ValueText
        {
            get { return (string)GetValue(ValueTextProperty); }
            set { SetValue(ValueTextProperty, value); }
        }

        // Using a DependencyProperty as the backing store for ValueText.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ValueTextProperty =
            DependencyProperty.Register("ValueText", typeof(string), typeof(TextBlock_TextBox_UserControl), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault));



        public IEnumerable DataList
        {
            get { return (IEnumerable)GetValue(DataListProperty); }
            set { SetValue(DataListProperty, value); }
        }

        // Using a DependencyProperty as the backing store for DataList.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty DataListProperty =
            DependencyProperty.Register("DataList", typeof(IEnumerable), typeof(TextBlock_TextBox_UserControl), new PropertyMetadata(null));


    }
}
